
const Dict = require('./dict')
const dict_file_handler = require('./dict_file_handler')
const dict_config_keys = require('./dict_config_keys')

async function make_dict(dict_src_folder, dst_folder, dst_name) {
    return await dict_file_handler.make(dict_src_folder, dst_folder, dst_name);
}

async function parse_dict(dict_file, dst_folder, force = true) {
    return await dict_file_handler.parse(dict_file, dst_folder, force)
}

function read_dict(folder) {
    return new Dict(folder);
}

module.exports = {
    make_dict,
    parse_dict,
    read_dict,
    Dict,
    dict_config_keys,
}